//定义token

const KEY = 'heimamm_wp'

//保存token的值

const saveToken = token => {
  localStorage.setItem(KEY, token)
}

//获取token

const getToken = () => {
  return localStorage.getItem(KEY)
}

//删除token的值
const removeToken = () => {
  localStorage.removeItem(KEY)
}

//导出   要使用就按需导入
export {
  saveToken,
  getToken,
  removeToken
}